package com.fool
{
	import mx.collections.ArrayCollection;

	public class Util
	{
		public static  function isEmpty(collection:Object):Boolean
		{
			if (collection is Array){
				return (collection as Array).length == 0;
			}else if (collection is ArrayCollection){
				return (collection as ArrayCollection).length == 0;
			}
			return true;
		}

	}
}